package com.xbongbong.saas.domain.entity.ext;/*/*/

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.domain.entity.ext.CoOpPermsEntityExt;
import com.xbongbong.saas.domain.entity.WorkOrderFormEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 *
 * @author 魏荣杰
 * @date 2019/3/14 10:58
 * @since v1.0
 * @version v1.0
 */
@Setter
@Getter
@ToString
public class WorkOrderFormEntityExt extends WorkOrderFormEntity {
    private static final long serialVersionUID = -1123817479993497827L;

    private CoOpPermsEntityExt coOpPermsExt;

    public CoOpPermsEntityExt getCoOpPermsExt() {
        return coOpPermsExt;
    }

    public void setCoOpPermsExt(String coOpPerms) {
        this.coOpPermsExt = JSONObject.parseObject(coOpPerms, CoOpPermsEntityExt.class);
    }

    /**
     * 数据摘要
     */
    private JSONArray summaryList;

    /**
     * 数据标签
     */
    private JSONArray labelsList;

    private Integer enable;
    /**
     * saas业务名称
     */
    private String businessName;
    /**
     * 业务类型主键字段(用于关联列表回显)
     */
    private String mainAttr;

    /**
     * 列表显示字段
     */
    private List<String> fieldList;

    public JSONArray getSummaryList() {
        return summaryList;
    }

    public void setSummaryList(String summary) {
        this.summaryList = JSONArray.parseArray(summary);
    }

    public JSONArray getLabelsList() {
        return labelsList;
    }

    public void setLabelsList(String labels) {
        this.labelsList = JSONArray.parseArray(labels);
    }

}
